I have string like below |
Re: Regular Expression to remove the carriage return
Here is how I handle replacing a carriage return with a space.
/******************************************************************************
fReplaceNewLine
Replaces newlines in a buffer with spaces
******************************************************************************/
void fReplaceNewLine(Buffer in_buf)
{ // Replace all occurances of new line to space in the Buffer
char in_cFrom = cl_cEOL
char in_cTo = ' '
if (null in_buf)
return
int i
for (i=0; i<length(in_buf); i++)
{
if (in_buf[i] == in_cFrom)
set(in_buf, i, in_cTo)
} // end for (i=0; i<length(in_buf); i++)
} // fReplaceNewLine()
|
Re: Regular Expression to remove the carriage return Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |